package nc.ui.to.m5x.billref.m4802;

import nc.bs.framework.common.NCLocator;
import nc.pubitf.to.m5x.so.m4802.IM5XRefQueryFor4802;
import nc.ui.pubapp.uif2app.query2.model.IQueryService;
import nc.ui.pubapp.uif2app.query2.model.IRefQueryService;
import nc.ui.querytemplate.querytree.IQueryScheme;
import nc.vo.pub.BusinessException;
import nc.vo.pubapp.pattern.exception.ExceptionUtils;
import nc.vo.to.m5x.entity.BillVO;

public class TransOrderRefService implements IRefQueryService, IQueryService {

  private static IM5XRefQueryFor4802 service = NCLocator.getInstance().lookup(
      IM5XRefQueryFor4802.class);

  @Override
  public Object[] queryByQueryScheme(IQueryScheme queryScheme) throws Exception {
    BillVO[] rets = null;
    try {

      rets =
          TransOrderRefService.service.queryTransOrderFor4802Ref(queryScheme);
    }
    catch (BusinessException e) {
      ExceptionUtils.wrappException(e);
    }
    return rets;
  }

  @Override
  public Object[] queryByWhereSql(String whereSql) throws Exception {
    return null;
  }

}
